Carbon


FillArc

Header: Quickdraw.h Carbon status: Supported

Fills a wedge with any available bit pattern.

void FillArc (
    const Rect *r, 
    SInt16 startAngle, 
    SInt16 arcAngle, 
    const Pattern *pat
);
Parameter descriptions
r

The rectangle that defines an oval’s boundaries.

startAngle

The angle indicating the start of the arc.

arcAngle

The bit pattern to use for the fill.

pat

The angle indicating the arc’s extent.

DISCUSSION

Using the patCopy pattern mode and the pattern defined in the Pattern structure that you specify in the pat parameter, the FillArc function draws a wedge of the oval bounded by the rectangle that you specify in the r parameter. As in FrameArc use the startAngle and arcAngle parameters to define the arc of the wedge.

This function leaves the location of the graphics pen unchanged.

Use GetPattern and GetIndPattern to get a pattern stored in a resource.

Use PaintArc to draw a wedge with the pen pattern for the current graphics port.

To fill a wedge with a pixel pattern, use the FillCArc function.

SPECIAL CONSIDERATIONS

The FillArc function may move or purge memory blocks in the application heap; do not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)